package com.hwj.mapper;

import com.hwj.entity.Chat;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Administrator
* @description 针对表【t_chat】的数据库操作Mapper
* @createDate 2024-03-11 17:21:35
* @Entity com.hwj.entity.Chat
*/
@Mapper
public interface ChatMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Chat record);

    int insertSelective(Chat record);

    Chat selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Chat record);

    int updateByPrimaryKey(Chat record);

    List<Chat> listChat(@Param("loginId") Long loginId, @Param("userId") Long userId);
}
